home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2879 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: avalon.chinalake.navy.mil!usenet
  2. Newsgroups: comp.lang.c++
  3. Subject: char vs. unsigned char  ???
  4. Message-ID: <DLGEKq.1zq@avalon.chinalake.navy.mil>
  5. From: sean harvey <charles_harvey@imdgw.chinalake.navy.mil>
  6. Date: Sat, 20 Jan 1996 00:26:48 GMT
  7. Sender: usenet@avalon.chinalake.navy.mil (NAWS news admin)
  8. Organization: OAO
  9. Content-Type: text/plain; charset=us-ascii
  10. Content-Transfer-Encoding: 7bit
  11. Mime-Version: 1.0
  12. X-Mailer: Mozilla 1.1N (Macintosh; I; 68K)
  13. X-Url: news:comp.lang.c++
  14.  
  15. I recently encorporated some functions from another program compiled and 
  16. linked under an older version (Microsoft C version 6.0) into my program 
  17. (MSVC 7.0).
  18.  
  19. The alien code would not compile for me due, I guess to more rigorous 
  20. type-checking.
  21.  
  22. He used a lot of unsigned char strings that generated compile errors on 
  23. calls to functions strlen, strcat and sprintf.
  24.  
  25. So I changed his types to char and compiled cleanly but the program 
  26. crashes and I think it may be due to the changes.
  27.  
  28. The functions pass the data around and compress it to 6-bit ascii, among 
  29. other things.  Then I send it out via a modem.
  30.  
  31. Somebody splain to me about unsigned char vs char please.  Or any other 
  32. input.
  33.  
  34.  
  35.